# == Schema Information
#
# Table name: rescues
#
#  id         :integer          not null, primary key
#  user_id    :integer                                # 关联用户
#  type       :string(255)                            # 救援类型
#  content    :text(65535)                            # 救援内容
#  lat        :float(24)                              # 纬度
#  lnt        :float(24)                              # 经度
#  created_at :datetime         not null
#  updated_at :datetime         not null
#  status     :integer                                # 救援状态
#

class Rescue < ActiveRecord::Base

  # 通用查询方法
  include Concerns::Query::Methods

  # 关联用户
  belongs_to :user

  # 关联支付
  has_one :payment
end
